package day9;

/**
 * @author oldliu
 * @since 1.0
 */
public abstract class Vechile {
    private String licensePlate, brand;//车牌，品牌，车型,
    private double dailyRent;//日租金
    //private int seat=5;//座位数
    private boolean state=true;//当前状态,true表示未出租
    public Vechile(){

    }

    public Vechile(String licensePlate, String brand, double dailyRent) {
        this.licensePlate = licensePlate;
        this.brand = brand;
        this.dailyRent = dailyRent;
        //this.seat = seat;
    }
    /**
     * 显示车辆信息
     */
    public abstract void show();

    public abstract double calcMoney(int days);

    public String getLicensePlate() {
        return licensePlate;
    }

    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getDailyRent() {
        return dailyRent;
    }

    public void setDailyRent(double dailyRent) {
        this.dailyRent = dailyRent;
    }

//    public int getSeat() {
//        return seat;
//    }
//
//    public void setSeat(int seat) {
//        this.seat = seat;
//    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Vechile{" +
                "licensePlate='" + licensePlate + '\'' +
                ", brand='" + brand + '\'' +
                ", dailyRent=" + dailyRent +

                ", state=" + state +
                '}';
    }
}
